import { AtlasApi } from './premium/content/atlas'
import { MaterialApi } from './premium/content/material'
import { QiNiuApi } from './file/qiniu'
import { AccountApi } from './userCenter/authority/account'
import { MenuApi } from './userCenter/system/menu'
import { RolesApi } from './userCenter/authority/roles'
import { AuthorAuditApi } from './audit/auth/author'
import { AuditMaterialApi } from './audit/content/material'
import { TtempAuditApi } from './audit/content/ttempAudit'
import { AuthorApi } from './premium/content/author'
import { OrganizationApi } from './userCenter/authority/organization'
import { OpenAApi } from './userCenter/system/openapi'
import { ClassifyApi } from './premium/category/classify'
import { TagApi } from './premium/content/tag'

export interface PageReqParams {
  current: number
  size: number
}
export interface PageRespData extends PageReqParams {
  total: number
}

export type CommontListResp<T> = {
  records: T[]
} & PageRespData

export type OperateAction = 'add' | 'edit'

export type Api =
  | AccountApi
  | RolesApi
  | MenuApi
  | MaterialApi
  | AtlasApi
  | QiNiuApi
  | AuthorAuditApi
  | AuditMaterialApi
  | TtempAuditApi
  | AuthorApi
  | OrganizationApi
  | OpenAApi
  | ClassifyApi
  | TagApi
